<?php

class My_Controller_Plugin_Locale extends Zend_Controller_Plugin_Abstract
{
    public function preDispatch(Zend_Controller_Request_Abstract $request)
    {
        $view = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer')->view;
        $locale = Zend_Registry::get('Zend_Locale');

        $view->locale = key($locale->getDefault());
        $view->date_format = Zend_Locale_Data::getContent($view->locale, 'date');
    }
}